//@AbapCatalog.sqlViewName: 'ZTEST_CDSSQL'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
//@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'ROOT VIEW'
//@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #CHECK
@Metadata.allowExtensions: true
@EndUserText.label: 'CDS View for SalesDocumentScheduleLine'
define root view entity ztset_cds
  // as select from I_SalesDocument as _SALESDOCUMENT
  as select from I_SalesDocumentScheduleLine as _SALESDOCUMENTSCHEDULELINE
  //association [0..1] to  I_SalesDocumentItem  as _SALESDOCUMENTITEM on $projection.SalesDocument = _SALESDOCUMENTITEM.SalesDocument
  //association [0..1] to I_SALESDOCUMENTSCHEDULELINE as _SALESDOCUMENTSCHEDULELINE on $projection.SalesDocument = _SALESDOCUMENTSCHEDULELINE.SalesDocument and
  // _SALESDOCUMENTSCHEDULELINE.SalesDocumentItem = _SALESDOCUMENTITEM.SalesDocumentItem
{
      //key SALESDOCUMENT.SalesDocument,
      //key SALESDOCUMENTITEM.SalesDocumentItem,
  key _SALESDOCUMENTSCHEDULELINE.SalesDocument,
  key _SALESDOCUMENTSCHEDULELINE.SalesDocumentItem,
  key _SALESDOCUMENTSCHEDULELINE.ScheduleLine,
  
      _SALESDOCUMENTSCHEDULELINE.OrderQuantityUnit,
      _SALESDOCUMENTSCHEDULELINE.ScheduleLineOrderQuantity,
      _SALESDOCUMENTSCHEDULELINE.ConfirmedDeliveryDate
}
